package apiday03home;

import java.util.ArrayList;
import java.util.Collection;

public class RemoveAllHome {
    public static void main(String[] args) {
        Collection c = new ArrayList();
        c.add("love");
        c.add("me");
        Collection c1 = new ArrayList();
        c1.add("dada");
        c1.add("love");
        c.removeAll(c1);//删交集:将c中与c1共有的元素删除
        System.out.println(c);
    }
}
